package com.cuijq.ms.visitordesign.v3;

import com.cuijq.ms.visitordesign.v3.impl.PPTFile;
import com.cuijq.ms.visitordesign.v3.impl.PdfFile;
import com.cuijq.ms.visitordesign.v3.impl.WordFile;

/**
 * @author by CuiJQ
 * @Classname Extractor
 * @Description Extractor Description
 * @Date 2021/5/29 17:44
 */
public class Extractor implements Visitor{
  @Override
  public void visit(PdfFile pdfFile) {
    System.out.println("Extract pdf.");
  }

  @Override
  public void visit(PPTFile pdfFile) {
    System.out.println("Extract PPT.");
  }

  @Override
  public void visit(WordFile pdfFile) {
    System.out.println("Extract word.");
  }
}
